import {
	post
} from './api.js'

// 列表
export const listData = (data) => {
	return post('/common/goods/list', data)
}
// 详情 
export const detailsData = (data) => {
	return post('/common/goods/get', data)
}

//查询历史
export const listDataHistory = () => {
	return post('/common/goods/search_log')
}

//删除查询历史
export const delHistory = (data) => {
	return post('/common/goods/search_del',data)
}

//加入购物车
export const addCar = (data)=>{
	return post('/users/cart_v2/add',data)
}

//一级分类
export const getOneLevelCat = (data)=>{
	return post('/common/goods/cat_list',data)
}


//立即购买时 检验是否有数据
export const checkNum = (data)=>{
	return post('/users/order/check',data)
}